﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using StockFinder.NorgatePremiumData;

namespace Testharness
{
    public partial class NorgatePremiumDataTestForm : Form
    {
        public NorgatePremiumDataTestForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var norgate = new NorgatePremiumDataStockFilePathsExtractor();
            var filenames = norgate.GetStockPriceHistoryFilenamesForSpecificDirectoryName("NASDAQ");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            var norgate = new NorgatePremiumDataStockFilePathsExtractor();
            var filenames = norgate.GetStockPriceHistoryFilenamesIncludingDelisted();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            string filename = @"C:\Data\PriceHistory\Norgate\NASDAQ\AAPL.csv";

            var norgate = new NorgatePremiumDataStockFilePathsExtractor();
            var exchange = norgate.GetExchangeNameFromFileName(filename);
        }
    }
}
